package com.myhome.demo;

import java.util.Arrays;
import java.util.List;

public class Demo {

    private static Integer[] arr = {1, 2, 3, 4};

    public static void main(String[] args) {
        //List<Integer> integerList = Arrays.asList(arr);
        for (int i = 0; i < 10; i++) {
            System.out.println((Integer) i);
        }
        //test01();
        //System.out.println("结果：" + Arrays.asList(arr).contains(3));
    }

    public static void test01() {
        Integer a = 1;
        Integer b = 2;
        Integer c = 3;
        Integer d = 3;
        Integer e = 321;
        Integer f = 321;
        Long g = 3L;
        System.out.println(c == d);
        System.out.println(e == f);
        System.out.println(c == (a + b));
        System.out.println(c.equals(a + b));
        System.out.println(g == (a + b));
        System.out.println(g.equals(a + b));
    }
}
